class Solution(object):
    def isPalindrome(self, x):
        """
        :type x: int
        :rtype: bool
        """
        if x < 0:
            return False

        y = 0
        x0 = x
        while x > 0:
            t = x % 10
            y = y * 10 + t
            x = int(x / 10)
        return x0 == y


s = Solution()
r = s.isPalindrome(-2147483648)
print(r)
